﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace helicopterFight
{
    public class Controls
    {
        private Keys engineStart;
        private Keys flyUp;
        private Keys flyDown;
        private Keys flyForward;
        private Keys flyBackward;
        private Keys flyLeft;
        private Keys flyRight;
        private Keys shootMissile;
        private Keys consoleOnOff;
        private Keys statsOnOff;


        public Keys EngineStart
        {
            get { return engineStart; }
            set { engineStart = value; }
        }


        public Keys FlyUp
        {
            get { return flyUp; }
            set { flyUp = value; }
        }

        public Keys FlyDown
        {
            get { return flyDown; }
            set { flyDown = value; }
        }

        public Keys FlyForward
        {
            get { return flyForward; }
            set { flyForward = value; }
        }

        public Keys FlyBackward
        {
            get { return flyBackward; }
            set { flyBackward = value; }
        }

        public Keys FlyLeft
        {
            get { return flyLeft; }
            set { flyLeft = value; }
        }

        public Keys FlyRight
        {
            get { return flyRight; }
            set { flyRight = value; }
        }

        public Keys ShootMissile
        {
            get { return shootMissile; }
            set { shootMissile = value; }
        }

        public Keys ConsoleOnOff
        {
            get { return consoleOnOff; }
            set { consoleOnOff = value; }
        }

        public Keys StatsOnOff
        {
            get { return statsOnOff; }
            set { statsOnOff = value; }
        }

        public Controls()
        {
            this.engineStart = Keys.X;
            this.flyUp= Keys.E;
            this.flyDown= Keys.C;
            this.flyForward = Keys.Up;
            this.flyBackward =  Keys.Down;
            this.flyLeft = Keys.Left;
            this.flyRight= Keys.Right;
            this.shootMissile =  Keys.Space;
            this.consoleOnOff = Keys.K;
            this.statsOnOff = Keys.Tab;
        }

        public void setDefaults()
        {
            this.engineStart = Keys.X;
            this.flyUp= Keys.E;
            this.flyDown= Keys.C;
            this.flyForward = Keys.Up;
            this.flyBackward =  Keys.Down;
            this.flyLeft = Keys.Left;
            this.flyRight= Keys.Right;
            this.shootMissile =  Keys.Space;
            this.consoleOnOff = Keys.K;
            this.statsOnOff = Keys.Tab;
        }
    }
}
